package com.deyinet.bdcms.dao;


import com.deyinet.bdcms.core.dao.Dao;
import com.deyinet.bdcms.entity.Devicedata;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * Created by Bacel on 2017/05/02.
 */
public interface IDevicedataDao extends Dao<Devicedata> {
    List<Devicedata> findByExampleLike(Devicedata example, int pageNo, int pageSize, Timestamp beginTime, Timestamp endTime);
    List<Devicedata> findByExampleLikeImport(Devicedata example,Timestamp beginTime, Timestamp endTime);
    long countByExampleLike(Devicedata example, Timestamp beginTime, Timestamp endTime);
    List<Devicedata> getlinechartdata(String sn, Timestamp startTime, Timestamp endTime);
    int countDeviceNormal(Timestamp beginTime, Timestamp endTime,int status);

}
